package other;

public class random {
	
	public static void main(String[] args) {
		for (int i = 0; i <= 9; i++) {
			int suiji = (int) (Math.random() * 101 + 100);
			System.out.println("随机数是：" + suiji);

			for (int b = 2; b <= suiji; b++) {
				if (suiji % b == 0 && b != suiji) {
					System.out.println(suiji + "不是素数");
					break;
				} else if (b == suiji) {
					System.out.println(suiji + "是素数");
				}
			}
        }
	}
}

